class AdminController < ApplicationController
  before_filter :authenticate_employee!
  before_filter :admin_only

  def index
   @employees = Employee.where("id != ? ",current_employee.id)
  end
  
  private

  def admin_only
    if !current_employee.is_admin
      reset_session
      redirect_to root_url
      flash[:notice] = "Not Authorized to View this page"
    end
  end

end
